package pcb.control.commands 
{
	import com.intel.patterns.cairngorm.CairngormEvent;
	import com.intel.utils.Debugger;
	import pcb.control.commands.AbstractCommand;
	import pcb.control.delegates.Del_loadLesson;
	import pcb.control.events.LoadDataEvent;
	import pcb.control.responders.Re_loadLessonText;
	import pcb.models.Notifications;
	
	/**
	 * ...
	 * @author Fintan Boyle
	 */
	public class Cmd_loadPlayerText extends AbstractCommand
	{
		
		public function Cmd_loadPlayerText() 
		{
			
		}
		
		override public function execute(event:CairngormEvent):void 
		{
			Debugger.traceOut("Cmd_loadPlayerText > execute()");
			loadFile(event as LoadDataEvent);
		}
		
		private function loadFile(ev:LoadDataEvent):void
		{
			var del:Del_loadLesson = new Del_loadLesson(new Re_loadLessonText(Notifications.PLAYER_LOCALE_READY));
			del.load("text.xml");
		}
	}

}